import 'package:flutter/material.dart';

extension TextEditingControllerZF on TextEditingController {
  /// 处理光标不在最后的问题
  set zftext(String text) {
    value = TextEditingValue(
        text: text,
        selection: TextSelection.fromPosition(TextPosition(
            offset: text.length, affinity: TextAffinity.downstream)));
  }
}
